export const handleUrlQuery = (query) => {
  const items = query.slice(1, query.length).split("&");
  const result = {};
  for (let index = 0; index < items.length; index++) {
    const [key, value] = items[index].split("=");
    key && (result[key] = value);
  };
  return result;
}